testlogout: actually quit if told to
authorDan Winship <danw@gnome.org>
Wed, 11 Jan 2012 16:52:23 +0000 (11:52 -0500)
committerDan Winship <danw@gnome.org>
Wed, 11 Jan 2012 17:00:06 +0000 (12:00 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=667705

tests/testlogout.c

index 3cd9ecb05e80d6a10bc31f645440e0eb87477a44..6c17f1a9361b26934a0a3c6c6cde70ac20deedb7 100644 (file)
@@ -1,5 +1,6 @@
 #include <gtk/gtk.h>
 
+static GtkWidget *win;
 static GtkWidget *inhibit_entry;
 static GtkWidget *inhibit_logout;
 static GtkWidget *inhibit_switch;
@@ -98,7 +99,6 @@ static void
 activate (GtkApplication *app,
           gpointer        data)
 {
-  GtkWidget *win;
   GtkWidget *box;
   GtkWidget *separator;
   GtkWidget *grid;
@@ -179,6 +179,7 @@ quit (GtkApplication *app,
       gpointer        data)
 {
   g_print ("Received quit\n");
+  gtk_widget_destroy (win);
 }
 
 int